/*
 * @Description:
 * @Author: HYH
 * @LastEditors: HYH
 * @LastEditTime: 2023-07-10 16:13:00
 */
import request from '@/utils/request'

/**查询供应商厂家关联SKU列表: */
export function getManufacturersSku(params) {
  return request({
    url: '/distribution/skuDistributor/getManufacturersSku',
    params
  })
}

/**供应商手动新增厂家SKU关联: */
export function addManufacturersSku(data) {
  return request({
    url: '/distribution/skuDistributor/addManufacturersSku',
    method: 'POST',
    data
  })
}

/**供应商手动修改厂家SKU关联: */
export function updateManufacturersSku(data) {
  return request({
    url: '/distribution/manufacturersSku/updateManufacturersSku',
    method: 'POST',
    data
  })
}

/**查询供应厂家列表 */
export function listManufacturers(query) {
  return request({
    url: '/distribution/manufacturers/list',
    method: 'get',
    params: query
  })
}

/**查询供应厂家详细 */
export function getManufacturers(id) {
  return request({
    url: '/distribution/manufacturers/' + id,
    method: 'get'
  })
}

/**新增供应厂家 */
export function addManufacturers(data) {
  return request({
    url: '/distribution/manufacturers',
    method: 'post',
    data: data
  })
}

/**修改供应厂家 */
export function updateManufacturers(data) {
  return request({
    url: '/distribution/manufacturers',
    method: 'put',
    data: data
  })
}

/**删除供应厂家 */
export function delManufacturers(id) {
  return request({
    url: '/distribution/manufacturers/' + id,
    method: 'delete'
  })
}



/**供应厂家SKU关联列表 */
export function manufacturersSkuList(params) {
  return request({
    url: '/distribution/manufacturersSku/list',
    params
  })
}




/**查询采购单列表-供应商 */
export function getPurchaseListByDistributor(params) {
  return request({
    url: '/distribution/purchase/getPurchaseListByDistributor',
    params
  })
}


/**删除供应厂家SKU关联 */
export function delManufacturersSku(ids) {
  return request({
    url: '/distribution/manufacturersSku/' + ids,
    method: 'delete'
  })
}
